home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ws_ping.zip / WSPI_SRC.ZIP / WS_GLOB.C < prev    next >
C/C++ Source or Header  |  1994-01-20  |  2KB  |  59 lines

  1. /*************************************************************************
  2.  Windows Sockets Application Support Module
  3.  Written by John A. Junod, 267 Hillwood St., Martinez, GA, 30907 93.10.01
  4.  <junodj@css583.gordon.army.mil>     <zj8549@trotter.usma.edu> 
  5.  
  6.  Released into the public domain with no restrictions other than to give
  7.  me some of the credit if you use this code in other applications.  Some
  8.  code concepts based on code published in UNIX Network Programming by
  9.  W. Richard Stevens or on BSD networking source code.
  10. *************************************************************************/
  11.  
  12. #define IS_GLOBAL_C   /* prevent externs from being read in ws_glob.h */
  13. #include "ws_glob.h"
  14. #include "ws_ping.h"
  15.  
  16. #ifndef MAXPACKET
  17. #define MAXPACKET 4096
  18. #endif
  19.  
  20. BOOL bAutoStart=TRUE;                  // automatically prompt for connect
  21. BOOL bAborted=FALSE;                   // set by timeout routine
  22.  
  23. char szMsgBuf[MAXPACKET];              // main i/o buffer
  24. u_char szSendPkt[MAXPACKET];           // output transfer buffer
  25. char szString[512];                    // temp string area
  26. char szDlgPrompt[80]="input:";         // used by input dialog as prompt
  27. char szDlgEdit[80]="";                 // used by input dialog for output
  28. char szRemoteHost[80]="";              // remote host name/addr to connect to
  29. char szAppName[20];                    // this programs name "ws_ftp"
  30. char szIniFile[]="WINSOCK.INI";        // INI file name
  31.  
  32. GLOBALHANDLE hGMem[100];               // memory for debug window display
  33.  
  34. HCURSOR hStdCursor,hWaitCursor;        // cursors
  35.  
  36. HWND hInst;                            // handle of instance
  37. HWND hWndMain;                         // handle of main window
  38.  
  39. int bConnected=0;          // connected flag
  40. int bCmdInProgress=0;      // command in progress flag
  41.  
  42. int  nWndx;                // the x axis multiplier
  43. int  nWndy;                // the y axis multiplier
  44.  
  45. // options
  46. int bVerbose=0;            // maximum verbosity (turns extra debug msgs on)
  47.  
  48. int iCode;                 // return code from last command(..)
  49.  
  50. int ptrhGMem=0;
  51.  
  52. SOCKET ping_socket=INVALID_SOCKET;
  53.  
  54. WORD sVPos;                            // scroll pos for debug window
  55.  
  56. WSADATA WSAData;                       // windows sockets dll information
  57.  
  58.  
  59.